<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统运行环境检查</title>
    <link rel="icon" href="__INSTALL_STATIC__/css/LT.jpg">
    <link rel="stylesheet" href="__INSTALL_STATIC__/css/reset.css?random={extendSetting('random')}">
    <link rel="stylesheet" href="__INSTALL_STATIC__/css/common.css?random={extendSetting('random')}">
    <link rel="stylesheet" href="__INSTALL_STATIC__/css/step.css?random={extendSetting('random')}">
    <script src="__INSTALL_STATIC__/js/jquery-3.4.1.min.js?random={extendSetting('random')}"></script>
</head>
<body>
<div class="ltcms-wrapper">
    <section class="ltcms-section">
        <header>
            <div class="header-left">
                <h1>LTCMS</h1>
                <h3>检查目录/文件属性</h3>
            </div>
            <p class="header-right">
                检查需要写操作的目录/文件是否有写操作权限
            </p>
        </header>
        <section class="ltcms-section1">
            <article class="article2">
                <h1>
                    {if $fileData['pass']}<img src="__INSTALL_STATIC__/css/check.png" alt="">{else}<img src="__INSTALL_STATIC__/css/wrong.png" alt="">{/if}
                    <span>目录权限检测</span>
                </h1>
                <table>
                    <tr>
                        <td>目录/文件</td>
                        <td>属性</td>
                        <td>目录/文件</td>
                        <td>属性</td>
                        <td>目录/文件</td>
                        <td>属性</td>
                    </tr>
                    {foreach $fileData["data"] $key $val}
                        {if ($key % 3 == 0) }<tr>{/if}
                            <td>{$val["name"]}</td>
                            <td>{if $val["result"]}<img src="__INSTALL_STATIC__/css/check.png" alt="">{else}<img src="__INSTALL_STATIC__/css/wrong.png" alt="">{/if}</td>
                        {if ($key % 3 == 2) }</tr>{/if}
                    {/foreach}
                </table>
                {if $fileData['pass']}
                &nbsp;&nbsp;<p>目录/文件属性通过检测，请点击 下一步(N) 继续安装</p>
                {else}
                &nbsp;&nbsp;<p><span style="color:red;">目录/文件属性未通过检测，安装无法进行!</span></p>
                {/if}
            </article>
            <footer>
                <div class="footer-left">
                    <progress value="40" max="100"></progress>
                    <span>40%</span>
                </div>
                <div class="buttons">
                    <form id="backTo" action="/install" method="post" >
                        <input type="hidden" class="step" name="step" value="2"/>
                    </form>
                    <form id="install" action="/install" method="post">
                        <input type="hidden" class="step" name="step" value="4"/>
                        <button type="button" onclick="goBack()" >上一步(P)</button>&nbsp;
                        <button >下一步(N)</button>&nbsp;
                        <button type="button" onclick="if(confirm('您确定要退出安装向导吗？')) window.close();" >取消(C)</button>
                    </form>
                </div>
            </footer>
        </section>
    </section>
    {include 'install/script'}
</div>
</body>
</html>